package com.youlu.campus.component;

import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.SimpleMongoClientDatabaseFactory;
import org.springframework.data.mongodb.core.convert.MongoConverter;

/**
 * 默认Mongo配置Template
 */
public class DefaultMongoTemplate extends MongoTemplate {
//    public DefaultMongoTemplate(MongoClient mongoClient, String databaseName) {
//        super(mongoClient, databaseName);
//    }
//
//    public DefaultMongoTemplate(MongoClient mongoClient, String databaseName) {
//        super(mongoClient, databaseName);
//    }

    public DefaultMongoTemplate(SimpleMongoClientDatabaseFactory mongoDbFactory) {
        super(mongoDbFactory);
    }

    public DefaultMongoTemplate(SimpleMongoClientDatabaseFactory mongoDbFactory, MongoConverter mongoConverter) {
        super(mongoDbFactory, mongoConverter);
    }
}
